public class Car {
    private long id;
    private String name;
    private int price;
    enum Rank{ BASIC, MEDIUM , LUXURY }
    private Rank rank;
    private String model;


    public Car(String name, int price, Rank rank, String model) {
        this.name = name;
        this.price = price;
        this.rank = rank;
        this.model = model;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Rank getRank() {
        return rank;
    }

    public void setRank(Rank rank) {
        this.rank = rank;
    }

    public String toString() {
        return String.format("%s-%s-%s-%d",name,model,rank,price);
    }
}
